﻿<%@ Control Language="VB" Inherits="System.Web.Mvc.ViewUserControl" %>
<%@ Import Namespace="Equipment.DataAccess" %>
<fieldset>
    <legend>Role '<%: DirectCast(ViewData("CurrentRole"), Role).Description%>'</legend>
    <table>
        <tr>
            <td>
                Site:
            </td>
            <td>
                <%= Html.DropDownList("Site")%>
            </td>
        </tr>
        <tr>
            <td>
                Role Name:
            </td>
            <td>
                <%= Html.Hidden("currRoleID", DirectCast(ViewData("CurrentRole"), Role).ID)%>
                <%= Html.TextBox("roleName", DirectCast(ViewData("CurrentRole"), Role).Description, New With {.class = "text"})%>
            </td>
        </tr>
        <tr>
            <td>
                Page Access:
            </td>
            <td>
                <% Html.RenderPartial("~/Views/Configuration/Controls/PageAccessList.ascx", ViewData("Pages"))%>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <input id="btnSaveRole" type="submit" class="button" style="width: 80px;" value="Save" />
                &nbsp;&nbsp;
                <input id="btnCancel" type="submit" class="button" style="width: 80px;" value="Cancel"
                    onclick="javascript:cancel(); return false;" />
            </td>
        </tr>
    </table>
</fieldset>
